<div style="padding: 20px">
  <h3>
    <%= @product.name %>
    <%= render 'admin_buttons', :product => @product %>
  </h3>
  <h4><%= @category.name %></h4>

  <% if @product.image.exists? then %>
    <div style="float: left; margin-right: 20px;">
      <%= image_tag @product.image.url(:medium) %>
    </div>
  <% end %>
  <div>
    <%= @product.description %>
  </div>
  <div style="clear: left; margin: 20px 0 10px 0; font-weight: bold;">
    <%= "#{t("product.price")}: #{number_to_currency @product.price}" %>
  </div>
  <div style="margin: 0" class="product_item">
        <%= link_to t("cart.model_name"), {:controller => "carts", :action => "add",
                              :id => @product},
                :method => :post,
                :remote => true,
                :class => "button" %>
  </div>
  <%= link_to t("helpers.navigation.back"), category_path(@product.category_id), :class => "button" %>
</div>